#include "stdafx.h"
#include "MyListHeaderUI.h"

IMPLEMENT_DUICONTROL(CMyListHeaderUI)
CMyListHeaderUI::CMyListHeaderUI()
{
}


CMyListHeaderUI::~CMyListHeaderUI()
{
}


void CMyListHeaderUI::PaintText(HDC hDC)
{
	if (m_dwTextColor == 0) m_dwTextColor = m_pManager->GetDefaultFontColor();

	RECT rcText = m_rcItem;
	rcText.left += m_rcTextPadding.left;
	rcText.top += m_rcTextPadding.top;
	rcText.right -= m_rcTextPadding.right;
	rcText.bottom -= m_rcTextPadding.bottom;

	CDuiString sText = GetText();
	if (sText.IsEmpty()) return;
	int nLinks = 0;
	
	m_iFont = 2;
	CRenderEngine::DrawText(hDC, m_pManager, rcText, sText, m_dwTextColor, \
			m_iFont, m_uTextStyle);
}